﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestListBox.aspx.cs" Inherits="TestListBox" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="10" DynamicLayout="false">
         
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table>
                    <tr>
                        <td style="height: 72px">
                            <asp:ListBox ID="lstMain" runat="server" DataTextField="Name" DataValueField="Name" Width="150px" DataSourceID="SqlDataSource1">
                                <asp:ListItem>aaaaa</asp:ListItem>
                                <asp:ListItem>bbbbb</asp:ListItem>
                                <asp:ListItem>ccccc</asp:ListItem>
                            </asp:ListBox>
                        </td>
                        <td style="height: 72px">
                            <asp:Button ID="Button1" runat="server" Text="->" OnClick="Button1_Click" />
                            <br />
                            <asp:Button ID="Button2" runat="server" Text="<-" OnClick="Button2_Click" />
                        </td>
                        <td style="height: 72px">
                            <asp:ListBox ID="lstSelect" runat="server" AppendDataBoundItems="True" Width="150px">
                            </asp:ListBox>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
                            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringForOracle %>"
                                    
                                ProviderName="<%$ ConnectionStrings:ConnectionStringForOracle.ProviderName %>" 
                                
        SelectCommand="SELECT * FROM &quot;BC_USER&quot;">
                            </asp:SqlDataSource>
    </form>
</body>
</html>
